class calc
{
   public void leap(int yr)
	   {
	      
       if((yr%4==0&&yr%100!=0)||(yr%400==0))
           System.out.println(yr+" Is a LEAP year");
       else
            System.out.println(yr+" Is NOT a LEAP year");
	
	
         char sm=\u0032;
         char b = \u0031;
         System.out.println(sm+" "+b+" ");
 }
 
	
  public  int[][] add(int[][] a,int[][] b)
   {
      int[][] c=new int[5][5];
      for(int i=0;i<a.length;i++)
       {
           for(int j=0;j<b.length;j++)
            {
               c[i][j]+=a[i][j]+b[i][j];
             }
         }
      return c;
   }
 public  int sum(int[][] a)
 {
      int sum=0;
      for(int i=0;i<a.length;i++)
       {
          for(int j=0;j<a.length;j++)
 
               sum+=a[i][j];
             
         }
      return sum;
   }


  public void p(int[][] c)
{
   for(int i=0;i<c.length;i++)
     {
           for(int j=0;j<c.length;j++)
                System.out.print(" " + c[i][j]);
      System.out.println(" ");
   }
}


public int[][] mul(int[][] a,int[][] b)
{
   
int[][] c=new int[5][5];

 for(int i=0;i<a.length;i++)
       {
           for(int j=0;j<b.length;j++)
            {
              c[i][j]=0;
              for(int k=0;k<c.length;k++)
                 {
                    c[i][j]+=a[i][k]*b[k][j];
                  }
             }
         }
      return c;
   }



}






   

       


    
